package edu.njust.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Timestamp;
import java.util.Date;


public class Bill {
    private int Id;                      //消费明细的主键ID
    @JsonProperty("StayRegisterID")
    private int StayRegisterID;         //消费明细的住宿登记ID

    @JsonProperty("CommodityID")
    private int CommodityID;         //消费明细的商品ID
    @JsonProperty("consumptionNumber")
    private String consumptionNumber;        //消费明细的消费商品数量
    @JsonProperty("consumptionMoney")
    private double consumptionMoney;             //消费金额
    @JsonProperty("consumptionTime")
    private Date consumptionTime;  //消费时间


    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public int getStayRegisterID() {
        return StayRegisterID;
    }

    public void setStayRegisterID(int stayRegisterID) {
        StayRegisterID = stayRegisterID;
    }

    public int getCommodityID() {
        return CommodityID;
    }

    public void setCommodityID(int commodityID) {
        CommodityID = commodityID;
    }

    public String getConsumptionNumber() {
        return consumptionNumber;
    }

    public void setConsumptionNumber(String consumptionNumber) {
        this.consumptionNumber = consumptionNumber;
    }

    public double getConsumptionMoney() {
        return consumptionMoney;
    }

    public void setConsumptionMoney(double consumptionMoney) {
        this.consumptionMoney = consumptionMoney;
    }

    public Date getConsumptionTime() {
        return consumptionTime;
    }

    public void setConsumptionTime(Date consumptionTime) {
        this.consumptionTime = consumptionTime;
    }

    @Override
    public String toString() {
        return "Bill{" +
                "Id=" + Id +
                ", StayRegisterID=" + StayRegisterID +
                ", CommodityID=" + CommodityID +
                ", consumptionNumber='" + consumptionNumber + '\'' +
                ", consumptionMoney=" + consumptionMoney +
                ", consumptionTime=" + consumptionTime +
                '}';
    }
}
